

/*
 * Powered By [rapid-framework]
 * Web Site: http://www.rapid-framework.org.cn
 * Google Code: http://code.google.com/p/rapid-framework/
 * Since 2008 - 2011
 */

package com.hibernate.model;

import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.persistence.Transient;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.hibernate.javacommon.base.BaseEntity;

/**
 * @author badqiu email:badqiu(a)gmail.com
 * @version 1.0
 * @since 1.0
 */


@Embeddable
public class CategoryInfoId extends BaseEntity implements java.io.Serializable{
	private static final long serialVersionUID = 5454155825314635342L;
	
	private Long categoryId;
	private java.lang.String pid;

	public CategoryInfoId(){
	}

	public CategoryInfoId(
		Long categoryId,
		java.lang.String pid
	){
		this.categoryId = categoryId;
		this.pid = pid;
	}

	
	
	public void setCategoryId(Long value) {
		this.categoryId = value;
	}
	
	@Column(name = "CATEGORY_ID", unique = false, nullable = false, insertable = true, updatable = true, length = 20)	
	public Long getCategoryId() {
		return this.categoryId;
	}
	
	public void setPid(java.lang.String value) {
		this.pid = value;
	}
	
	@Column(name = "P_ID", unique = false, nullable = false, insertable = true, updatable = true, length = 50)	
	public java.lang.String getPid() {
		return this.pid;
	}

	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
	
	public int hashCode() {
		return HashCodeBuilder.reflectionHashCode(this);
	}
	
	public boolean equals(Object other) {
		return EqualsBuilder.reflectionEquals(this, other);
	}
	@Transient
	@Override
	public Long getTargetId() {
		// TODO Auto-generated method stub
		return null;
	}
	@Transient
	@Override
	public String getTarget() {
		// TODO Auto-generated method stub
		return null;
	}
	@Transient
	@Override
	public String getTargetName() {
		// TODO Auto-generated method stub
		return null;
	}
}